package com.zb.wx;

/**
 * 微信缓存Key常量类
 * @Author WEN
 * @Date 2024/2/29 0029
 **/
public interface WxCacheKeyConstant {
    /**
     * 微信缓存前缀
     */
    String WX = "wx:";

    /**
     * 微信第三方前缀
     */
    String WX_THIRD = WX + "third:";

    /**
     * 微信票据前缀
     */
    String WX_COMPONENT_VERIFY_TICKET = WX_THIRD + "component-verify-ticket:";

    /**
     * 微信票据过期时间：12小时=43200秒，单位：秒
     */
    long WX_COMPONENT_VERIFY_TICKET_EXPIRE_TIME = 43200;

    /**
     * 微信令牌Token
     */
    String WX_COMPONENT_ACCESS_TOKEN = WX_THIRD + "component-access-token:";

    /**
     * 微信预授权码
     */
    String WX_PRE_AUTH_CODE = WX_THIRD + "pre-auth-code:";

    /**
     * 微信授权认证时前台传过来的uuid缓存前缀
     */
    String WX_AUTHOR_WEBSOCKET_UUID = WX_THIRD + "websocket-uuid:";


    /**
     * 微信公众号或小程序缓存前缀
     */
    String WX_PUBLIC_NO = WX + "wx-public-no:";

    /**
     * 微信公众号接口调用token
     */
    String WX_AUTHORIZER_ACCESS_TOKEN = WX_PUBLIC_NO + "authorizer_access_token:";
}
